import sequelize from "../../db/dbConnext";
import { option } from "../../db/commomConfig";
import { DataTypes } from "sequelize";
import SysParamsSettingEntity from "../../../entities/system/SysParamsSettingEntity";

type TModel = Omit<SysParamsSettingEntity, "validateThis" | "id">;

const SysParamsSettingModel = sequelize.define<any, TModel>(
  "sys_params_setting",
  {
    paramsName: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    paramsCode: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    paramsValue: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    remark: {
      type: DataTypes.STRING,
      allowNull: true,
    },
  },
  option
);
export default SysParamsSettingModel;
